<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>

<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <form th:action="@{/userAccounts/save}" th:object="${userAccount}" method="POST">
        <input type="hidden" th:field="${userAccount.userAccountId}">
        <br>
        <div>管理员昵称：<input type="text" placeholder="昵称"  th:field="${userAccount.userName}"></div>
        <div>
        性别：
        <label for="gender">男</label>
            <input type="radio" name="gender" id="gender" value="男"  th:field="${userAccount.gender}">
        <label for="gender1">女</label>
            <input type="radio" name="gender" id="gender1" value="女"  th:field="${userAccount.gender}">
        </div>
        <div>管理员工号：<input type="text" placeholder="工号" th:field="${userAccount.password}"></div>
        <input type="hidden" name="_csrf" th:value="${_csrf.token}" />
        <button type="submit" class="btn btn-default btn-sm">确定</button>
    </form>
</div>
</body>
</html>